#include "Master.h"
#include <iostream>
#include <cstdlib>

using namespace std;

int main(int argc, char **argv)
{
	if(argc < 2)
	{
		cout << "Error ! Too few arguments." << endl;
		cout << "usage : port" << endl;
		return 0;
	}
	
	system("clear");
	
	Master m(atoi(argv[1]));
	
	cout << "Server started on " << argv[1] << endl;
	
	m.start();
	
	return 0;
}
